package com.ruibang.glass.produce.domain.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-04  19:52
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class DeviceAlarmReq extends PageRequest {
    @ApiModelProperty("产线名称")
    private String productionLineName;


    @ApiModelProperty("报警开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmBeginStartTime;
    @ApiModelProperty("报警开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmBeginEndTime;


    @ApiModelProperty("报警结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmEndStartTime;
    @ApiModelProperty("报警结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmEndTime;


    @ApiModelProperty("岗位ID")
    private String stationId;

    @ApiModelProperty("报警开始时间")
    private long alarmBeginStartTs;
    @ApiModelProperty("报警开始时间")
    private long alarmBeginEndTs;

    @ApiModelProperty("报警结束时间")
    private long alarmEndStartTs;
    @ApiModelProperty("报警结束时间")
    private long alarmEndTs;
}
